import request from '@/utils/request'

// 查询付款单列表
export function listBizPayable (query) {
  return request({
    url: '/biz/bizPayable/list',
    method: 'get',
    params: query
  })
}


// 新增付款单
export function addBizPayable (data) {
  return request({
    url: '/biz/bizPayable',
    method: 'post',
    data: data
  })
}

// 修改付款单
export function updateBizPayable (data) {
  return request({
    url: '/biz/bizPayable',
    method: 'put',
    data: data
  })
}

// 获取初始化数据
export function getInitData (dictTypes) {
  return request({
    url: '/biz/bizPayable/getInitData/' + dictTypes,
    method: 'get'
  })
}

// 删除付款单
export function delBizPayable (id) {
  return request({
    url: '/biz/bizPayable/' + id,
    method: 'delete'
  })
}